<?php
require APPPATH.'libraries/ApiController.php';
class dashboard extends ApiController {
	public function __construct()
	{
		parent::__construct();
	}
	
	
	public function index(){
		$token=$this->verifyToken();
		if($token){
			$this->db->where("shopid",$token["shopid"]);
			$shop=$this->db->get("shop")->row_array();
			if($shop){
				$shop["logo"]=$this->config->item("domain").$row["logo"];
			}		
			
			
			$this->WRITE("shop",$shop);
			$this->WRITE("code",1);
			$this->RESPONSE();
		}
	}
	
}
	